<?php
// +----------------------------------------------------------------------
// | @filename BaseLogic.php
// +----------------------------------------------------------------------
// | @author 落花轻舞问君愁 <mwcx1990@qq.com>
// +----------------------------------------------------------------------
// | @datetime 2021-10-26 17:44:56
// +----------------------------------------------------------------------
// | @Description

namespace Addons\Backend\Logics;

class BaseLogic
{
    public function failed($message, $code = 1)
    {
        return ['code' => $code, 'message' => $message];
    }

    public function success($data, $message = 'success')
    {
        return ['code' => 0, 'message' => $message, 'data' => $data];
    }
}
